<template>
  <ul>
    <li v-for="item in UserList">{{item.name}}</li>
  </ul>
</template>

<script setup lang="ts">
  //@ts-ignore
  import { users } from "@/api/user";
  import { onMounted, reactive } from "vue";
  let UserList = reactive([])
  const getUsers = () => {
    users().then((res) => {
      UserList = res.data.data.rows
      console.log(UserList);
    });
  };
  onMounted(() => {
    getUsers();
  });
</script>

<style lang="scss" scoped>
</style>